//
//  WebService.h
//  YYZB
//
//  Created by 顾悦 on 16/3/21.
//
//

#import <Foundation/Foundation.h>

typedef void (^Completion)(id result, NSError *error);

@interface WebService : NSObject

- (void)sendHTTPGetRequest:(NSString *)params
         completionHandler:(Completion)completionHandler;

- (NSString *)formattedURLString:(NSDictionary *)params method:(NSString *)method sessionNeeded:(BOOL)flag;

- (id)unboxedValue:(id)obj error:(NSError **)error;

+ (BOOL)isNetworkAvailable;

@end
